﻿@model LeadMaster.ViewModels.ViewModelFinancials

<style type="text/css">

.filterlabel
{
    width: 60px;
}

.datepicker
{
    width:100px;
}
</style>

@using (Html.BeginForm("Index", "Financial", FormMethod.Post, new { id = "frmAccounts" }))
{

    <fieldset>
        <legend style="width: 300px;">Financial Action Filter</legend>
        <div>
            <label class="filterlabel">Start</label>
            <input type="textbox" name="FilterStart" class="datepicker" />

        </div>
        <div>
            <label class="filterlabel">End</label>
            <input type="textbox" name="FilterEnd" class="datepicker" />
        </div>
        <div class="spacer"></div>
        <div>
            <label class="filterlabel">Action</label>
            @Html.DropDownList("FinanceTypesID", null, new { @class="chosen" })
        </div>
        <div class="spacer"></div>
        <p>
        <input type="submit" name="submit" value="Filter" />
        </p>

    </fieldset>
}
    



<script type="text/javascript">
    $(document).ready(function () {

        $(".chosen").chosen();

        $(".datepicker").datepicker({
            regional: 'en-GB',
            dateFormat: 'dd/mm/yy'
        });

        $("#FilterStart").val("@(DateTime.Now.ToShortDateString())");
        $("#FilterEnd").val("@(DateTime.Now.ToShortDateString())");


    });
</script>

